// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   LoadDistributor.java

package org.quickserver.net.client.loaddistribution;

import org.quickserver.net.client.*;

// Referenced classes of package org.quickserver.net.client.loaddistribution:
//            LoadPattern

public class LoadDistributor
{

    public LoadDistributor(HostList hostList)
    {
        setHostList(hostList);
    }

    public Host getHost(ClientInfo clientInfo)
    {
        return getLoadPattern().getHost(clientInfo);
    }

    public HostList getHostList()
    {
        return hostList;
    }

    public void setHostList(HostList hostList)
    {
        this.hostList = hostList;
    }

    public LoadPattern getLoadPattern()
    {
        return loadPattern;
    }

    public void setLoadPattern(LoadPattern loadPattern)
    {
        this.loadPattern = loadPattern;
        this.loadPattern.setHostList(hostList);
    }

    private HostList hostList;
    private LoadPattern loadPattern;
}
